package co.edu.usbcali.dataaccess.dao;

import co.edu.usbcali.modelo.ActaSeguimiento;

import java.math.BigDecimal;

import java.util.Date;
import java.util.List;
import java.util.Set;


/**
 * Interface for ActaSeguimientoDAO.
 *
 * @author Zathura Code Generator http://code.google.com/p/zathura
 */
public interface IActaSeguimientoDAO {
    // property constants
    //public static final String  ACCIONESSEG = "accionesSeg";
    public static final String ACCIONESSEG = "accionesSeg";

    //public static final String  CELULARTUTORSEG = "celularTutorSeg";
    public static final String CELULARTUTORSEG = "celularTutorSeg";

    //public static final Long  CODSEG = "codSeg";
    public static final String CODSEG = "codSeg";

    //public static final Date  FECHASEG = "fechaSeg";
    public static final String FECHASEG = "fechaSeg";

    //public static final String  LABORESSEG = "laboresSeg";
    public static final String LABORESSEG = "laboresSeg";
   
    //public static final String  CODPRA = "codPra";
    public static final String CODPRA = "codPra";    

    /**
    * Perform an initial save of a previously unsaved ActaSeguimiento entity. All
    * subsequent persist actions of this entity should use the #update()
    * method. This operation must be performed within the a database
    * transaction context for the entity's data to be permanently saved to the
    * persistence store, i.e., database. This method uses the
    * {@link javax.persistence.EntityManager#persist(Object) EntityManager#persist}
    * operation.
    *
    * <pre>
    * EntityManagerHelper.beginTransaction();
    * IActaSeguimientoDAO.save(entity);
    * EntityManagerHelper.commit();
    * </pre>
    *
    * @param entity
    *            ActaSeguimiento entity to persist
    * @throws RuntimeException
    *             when the operation fails
    */
    public void save(ActaSeguimiento entity);

    /**
    * Delete a persistent ActaSeguimiento entity. This operation must be performed
    * within the a database transaction context for the entity's data to be
    * permanently deleted from the persistence store, i.e., database. This
    * method uses the
    * {@link javax.persistence.EntityManager#remove(Object) EntityManager#delete}
    * operation.
    *
    * <pre>
    * EntityManagerHelper.beginTransaction();
    * IActaSeguimientoDAO.delete(entity);
    * EntityManagerHelper.commit();
    * entity = null;
    * </pre>
    *
    * @param entity
    *            ActaSeguimiento entity to delete
    * @throws RuntimeException
    *             when the operation fails
    */
    public void delete(ActaSeguimiento entity);

    /**
    * Persist a previously saved ActaSeguimiento entity and return it or a copy of it
    * to the sender. A copy of the ActaSeguimiento entity parameter is returned when
    * the JPA persistence mechanism has not previously been tracking the
    * updated entity. This operation must be performed within the a database
    * transaction context for the entity's data to be permanently saved to the
    * persistence store, i.e., database. This method uses the
    * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge}
    * operation.
    *
    * <pre>
    * EntityManagerHelper.beginTransaction();
    * entity = IActaSeguimientoDAO.update(entity);
    * EntityManagerHelper.commit();
    * </pre>
    *
    * @param entity
    *            ActaSeguimiento entity to update
    * @return ActaSeguimiento the persisted ActaSeguimiento entity instance, may not be the
    *         same
    * @throws RuntimeException
    *             if the operation fails
    */
    public ActaSeguimiento update(ActaSeguimiento entity);

    public ActaSeguimiento findById(Long id);

    /**
    * Find all ActaSeguimiento entities with a specific property value.
    *
    * @param propertyName
    *            the name of the ActaSeguimiento property to query
    * @param value
    *            the property value to match
    * @param rowStartIdxAndCount
    *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
    *            row index in the query result-set to begin collecting the
    *            results. rowStartIdxAndCount[1] specifies the the maximum
    *            count of results to return.
    * @return List<ActaSeguimiento> found by query
        */
    public List<ActaSeguimiento> findByProperty(String propertyName,
        Object value, int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findByCriteria(String whereCondition);

    public List<ActaSeguimiento> findByAccionesSeg(Object accionesSeg);

    public List<ActaSeguimiento> findByAccionesSeg(Object accionesSeg,
        int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findByCelularTutorSeg(Object celularTutorSeg);

    public List<ActaSeguimiento> findByCelularTutorSeg(Object celularTutorSeg,
        int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findByCodSeg(Object codSeg);

    public List<ActaSeguimiento> findByCodSeg(Object codSeg,
        int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findByFechaSeg(Object fechaSeg);

    public List<ActaSeguimiento> findByFechaSeg(Object fechaSeg,
        int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findByLaboresSeg(Object laboresSeg);

    public List<ActaSeguimiento> findByLaboresSeg(Object laboresSeg,
        int... rowStartIdxAndCount);
    
    public List<ActaSeguimiento> findByCodPra(Object codPra);

    public List<ActaSeguimiento> findByCodPra(Object codPra,
        int... rowStartIdxAndCount);    

    /**
    * Find all ActaSeguimiento entities.
    *
    * @param rowStartIdxAndCount
    *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
    *            row index in the query result-set to begin collecting the
    *            results. rowStartIdxAndCount[1] specifies the the maximum
    *            count of results to return.
    * @return List<ActaSeguimiento> all ActaSeguimiento entities
    */
    public List<ActaSeguimiento> findAll(int... rowStartIdxAndCount);

    public List<ActaSeguimiento> findPageActaSeguimiento(
        String sortColumnName, boolean sortAscending, int startRow,
        int maxResults);

    public Long findTotalNumberActaSeguimiento();
}
